package com.ruoyi.base.mapper;

import java.util.List;
import com.ruoyi.base.domain.WorkingTechnologicalRel;

/**
 * 工艺流程-工序-关联Mapper接口
 * 
 * @author ruoyi
 * @date 2022-08-17
 */
public interface WorkingTechnologicalRelMapper 
{
    /**
     * 查询工艺流程-工序-关联
     * 
     * @param id 工艺流程-工序-关联主键
     * @return 工艺流程-工序-关联
     */
    public WorkingTechnologicalRel selectWorkingTechnologicalRelById(Long id);

    /**
     * 查询工艺流程-工序-关联列表
     * 
     * @param workingTechnologicalRel 工艺流程-工序-关联
     * @return 工艺流程-工序-关联集合
     */
    public List<WorkingTechnologicalRel> selectWorkingTechnologicalRelList(WorkingTechnologicalRel workingTechnologicalRel);

    /**
     * 新增工艺流程-工序-关联
     * 
     * @param workingTechnologicalRel 工艺流程-工序-关联
     * @return 结果
     */
    public int insertWorkingTechnologicalRel(WorkingTechnologicalRel workingTechnologicalRel);

    /**
     * 修改工艺流程-工序-关联
     * 
     * @param workingTechnologicalRel 工艺流程-工序-关联
     * @return 结果
     */
    public int updateWorkingTechnologicalRel(WorkingTechnologicalRel workingTechnologicalRel);

    /**
     * 删除工艺流程-工序-关联
     * 
     * @param id 工艺流程-工序-关联主键
     * @return 结果
     */
    public int deleteWorkingTechnologicalRelById(Long id);

    /**
     * 批量删除工艺流程-工序-关联
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWorkingTechnologicalRelByIds(Long[] ids);

    /**
     * 工艺流程号删除关系
     * @param processNo
     * @return
     */
    public int deleteWorkingTechnologicalRelByProcessNo(String processNo);


    public String getTechnologicalProcess(String technologicalNo);


}
